package com.mangguo.tingjian.user.service.impl;

import com.mangguo.tingjian.user.dto.CountResult;
import com.mangguo.tingjian.user.entity.DwUserRegisterMini;
import com.mangguo.tingjian.user.mapper.DwUserRegisterMiniMapper;
import com.mangguo.tingjian.user.mapper.DwUserRegisterMiniMapper;
import com.mangguo.tingjian.user.service.IDwUserRegisterMiniService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 注册用户-小程序 服务实现类
 * </p>
 *
 * @author auto
 * @since 2019-11-25
 */
@Service
@AllArgsConstructor
public class DwUserRegisterMiniServiceImpl extends ServiceImpl<DwUserRegisterMiniMapper, DwUserRegisterMini> implements IDwUserRegisterMiniService {
    private final DwUserRegisterMiniMapper dwUserRegisterMiniMapper;

    @Override
    public List<CountResult> countUniqueImeiByMonth() {
        return dwUserRegisterMiniMapper.countUniqueImeiByMonth();
    }

    @Override
    public List<CountResult> countUniqueImeiByDate(Integer start, Integer end) {
        return dwUserRegisterMiniMapper.countUniqueImeiByDate(start, end);
    }
}
